package cli

import (
	"os"
	"path/filepath"
)

type Path struct {
	Template  string
	Static    string
	Markdown  string
	Dist      string
	OtherPage string
}

func Cli() (path *Path, err error) {
	dir := os.Args[1]
	if dir == "" {
		err = os.ErrInvalid
		return
	}
	path = &Path{
		Template:  filepath.Join(dir, "template"),
		Static:    filepath.Join(dir, "static"),
		Markdown:  filepath.Join(dir, "markdown"),
		Dist:      filepath.Join(dir, "dist"),
		OtherPage: filepath.Join(dir, "otherPage"),
	}
	return
}
